home *** CD-ROM | disk | FTP | other *** search
- ;------------ Toxic Logon ----------------------------------------------;
- ; Coder: THe BLaCK aSSaSSiN ;
- ; Date: 15/o5/96 ;
- ; Hours: 1.5 ;
- ; ;
- ;------ Declare Procedures ---------------------------------------------;
- declare procedure writeln()
-
- ;------ Veribles -------------------------------------------------------;
- Integer Pram1, Xstatus, Ystatus, Xhandle, Yhandle, Xpassword, rx, ry
- Integer Ypassword, Xusernote, Yusernote, DelayTime, NewX, NewY
- String UserNoteColor, BadPassword, Select, YesBar, NoBar
- String PWS, EAS, DCS, BLNK, WriteString, LPS
- boolean newuser
-
- ;------ Load CFG files -------------------------------------------------;
- GetToken Pram1
- FOpen 1, PpePath() + "LOGIN.CNF", 2, 0
- FGet 1, Xstatus
- FGet 1, Ystatus
- FGet 1, Xhandle
- FGet 1, Yhandle
- FGet 1, Xpassword
- FGet 1, Ypassword
- FGet 1, Xusernote
- FGet 1, Yusernote
- FGet 1, UserNoteColor
- FGet 1, DelayTime
- FGet 1, NewX
- FGet 1, NewY
- FGet 1, YesBar
- FGet 1, NoBar
- FGet 1, BadPassword
- FGet 1, EAS
- FGet 1, PWS
- FGet 1, DCS
- FGet 1, BLNK
- FGet 1, LPS
- FClose 1
-
- ;------ AutoDisconect ------------------------------------------------------;
- If (Pram1 == 76) then
- AnsiPos Xstatus, Ystatus
- Print DCS
- Delay DelayTime
- AnsiPos Xstatus, Ystatus
- print blnk
- endif
-
- ;------ First Name ---------------------------------------------------------;
- If (Pram1 == 259) then
- cls
- DispFile PpePath() + "LOGIN.PCB", 0
- AnsiPos Xstatus, Ystatus
- Print EAS
- AnsiPos Xhandle, Yhandle
- endif
-
- ;------ Last Name ----------------------------------------------------------;
- If (Pram1 == 260) then
- KbdStuff Chr(13)
- Endif
-
- ;------ Password -----------------------------------------------------------;
- If (Pram1 == 148) then
- getuser
- AnsiPos Xusernote, Yusernote
- Print UserNoteColor + "@CITY@"
- AnsiPos Xpassword, Ypassword
- print " "
- if (onlocal() = False) LPS = "N"
- WriteString = U_PWD
- if (LPS = "N") then
- AnsiPos Xstatus, Ystatus
- print blnk
- AnsiPos Xstatus, Ystatus
- print PWS
- Sprintln "H.--[ Local Window ]-------------."
- Sprintln "| Password: |"
- Sprintln "| Usr inpt: |"
- Sprintln "| Security: |"
- Sprintln "`-------------------------------'"
- Sprint "3H" + U_PWD
- Sprint "3H" + String(U_Sec())
- AnsiPos Xpassword, Ypassword
- Writeln()
- endif
- kbdstuff WriteString
- endif
-
- ;------ WrongPassword ------------------------------------------------------;
- If (Pram1 == 92) then
- AnsiPos Xstatus, Ystatus
- print blnk
- AnsiPos Xstatus, Ystatus
- Print BadPassword
- Delay DelayTime
- AnsiPos Xstatus, Ystatus
- print blnk
- endif
-
- ;------ New User -----------------------------------------------------------;
- if (Pram1 == 53) then
- ansipos NewX, NewY
- print NoBar
- newuser = TRUE
- while (select <> chr(13)) do
- select = ""
- while (select = "") do
- select = inkey()
- endwhile
- ansipos NewX, NewY
- if (select == "RIGHT") print YesBar
- if (select == "LEFT") print NoBar
- if (select == "LEFT") newuser = TRUE
- if (select == "RIGHT") newuser = FALSE
- endwhile
- if (newuser == TRUE) kbdstuff "C" + chr(13)
- if (newuser == FALSE) kbdstuff "R" + chr(13)
- endif
-
- ;------ Writeln proc -------------------------------------------------------;
- procedure writeln()
- WriteString = ""
- integer x, rl
- string KBD
- x = getx()
- while (KBD <> chr(13)) do
- kbd = ""
- while (KBD = "") do
- kbd = Upper(inkey())
- if (Len(KBD) > 1) KBD = ""
- if ((rl = 0) && (KBD = chr(13))) KBD = ""
- if (RL = 12) if (KBD <> chr(8)) if (KBD <> chr(13)) KBD = ""
- endwhile
- if ((KBD = chr(8))&&(RL <> 0)) then
- dec RL
- WriteString = Left(WriteString, Len(WriteString)-1)
- elseif ((KBD <> chr(13))&&(KBD <> chr(8))) then
- WriteString = WriteString + KBD
- Inc RL
- endif
- if (KBD = chr(8)) then
- if (GetX() > X) then
- rx = getx()
- ry = gety()
- Sprint "3H" + WriteString + " "
- Sprint ""+string(ry)+";"+string(rx)+"H"
- Print Chr(8) + " " + Chr(8)
- endif
- else
- if (kbd <> chr(13)) then
- rx = getx()
- ry = gety()
- Sprint "3H" + WriteString
- Sprint ""+string(ry)+";"+string(rx)+"H"
- print "."
- endif
- endif
- endwhile
- endproc
-
- ;------ End Of Coding ------------------------------------------------------;
-